package com.dh.blog.vo;

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.NotNull;

import com.ewei.web.common.validator.SaveGroup;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

/**
 * 留言VO
 * @author David
 *
 */
@JsonInclude(Include.NON_EMPTY)
public class LeaveVo implements Serializable{
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 3048858272860816493L;
	private Integer id;
	/**
	 * 留言内容
	 */
	@NotNull(message="{leave.content.not.null}",groups={SaveGroup.class})
	private String content;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 访客VO
	 */
	private VisitorVo visitor;
	/**
	 * 博客id
	 */
	@NotNull(message="{id.not.null}",groups={SaveGroup.class})
	private String blogId;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public VisitorVo getVisitor() {
		return visitor;
	}
	public void setVisitor(VisitorVo visitor) {
		this.visitor = visitor;
	}
	public String getBlogId() {
		return blogId;
	}
	public void setBlogId(String blogId) {
		this.blogId = blogId;
	}
}
